<!-- 操作日志 -->
<template>
  <div>
    <el-table :data="recordList" v-loading="loading" border size="mini" stripe fit border :header-cell-style="{'text-align':'center'}">
      <el-table-column label="操作日期" prop="operateTime"/>
      <el-table-column label="操作人" prop="operator"/>
      <el-table-column label="操作日志" prop="operateContent"/>
    </el-table>
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.current"
      :limit.sync="queryParams.size"
      @pagination="getList"
    />
  </div>
</template>
<script>
  import {recordList} from "@/api/tws/useRecord"

  export default {
    name:"UseRecord",
    components:{

    },
    data(){
      return{
        queryParams:{
          current:1,
          size:10,
          orderId: null,
        },
        //总条数
        total:0,
        //操作日志列表
        recordList:[],
        // 遮罩层
        loading:true,
      }
    },
    created(){
    },
    methods:{
     getList(id){
       this.queryParams.orderId = id;
       recordList(this.queryParams).then(res =>{
         this.recordList = res.rows;
         this.loading = false;
       })
     }
    }
  }
</script>
<style>

</style>
